#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

# pip install -i https://mirrors.aliyun.com/pypi/simple/ pdm
curl -sSL https://pdm-project.org/install-pdm.py | python3 -

pip install -i https://pypi.org/simple/ pdm

curl -o pdm-2.17.0-py3-none-any.whl https://files.pythonhosted.org/packages/c9/b2/40b72d93dd2b9cda3bfd17625373f0a1e43d152d0e3fb30fb4985a825702/pdm-2.17.0-py3-none-any.whl
curl -o unearth-0.16.1-py3-none-any.whl https://files.pythonhosted.org/packages/f3/08/ad4427cf0d0e19053d7e0b3405f2e6dcb697fb9bff61335a2024729402e2/unearth-0.16.1-py3-none-any.whl
curl -o dep_logic-0.4.3-py3-none-any.whl https://files.pythonhosted.org/packages/ea/44/97b7196b39bbf8e901587ebef2fe6cb032c18d194d96afa505a12ad95237/dep_logic-0.4.3-py3-none-any.whl

python -m pip download -i https://mirrors.aliyun.com/pypi/simple/ pdm -d ./  --only-binary=:all:

pip download -i https://mirrors.aliyun.com/pypi/simple/ pdm -d ./